import { request } from '@/utils/request'
const obj = {
  /**
   *
   * @param {region,industry,size} 参数
   * @param {functoin} success
   * @param {function} error
   */
  fetchMapCompanies: (param, success, error) => {
    return request(
      '/company/near',
      'get',
      param,
      success,
      error
    )
  },
  fetchMap1Companies: (param, success, error) => {
    return request(
      '/company/nearGeo',
      'get',
      param,
      success,
      error
    )
  },
  fetchMapCollection: (param, success, error) => {
    return request(
      '/map/collect',
      'post',
      param,
      success,
      error
    )
  },
  fetchMapList:(param,success,error) => {
    return request(
      '/map/collect/list',
      'get',
      param,
      success,
      error
    )
  },
  fetchMapDuoweidu:(param,success,error)=>{
    return request(
      '/company/duoweidu',
      'get',
      param,
      success,
      error
    )
  },
  fetchMapcompanyChenglifilter:(param,success,error)=>{
    return request(
        '/company/duoweidu/filter',
        'get',
        param,
        success,
        error
    )
  },
  fetchMapjiegou:(param,success,error)=>{
    return request(
        '/company/duoweidu/jiegou',
        'get',
        param,
        success,
        error
    )
  },
  fetchMapjiegouFilter:(param,success,error)=>{
    return request(
        '/company/duoweidu/filter',
        'get',
        param,
        success,
        error
    )
  },
  fetchChengli:(param,success,error)=>{
    return request(
        'company/duoweidu/chengli',
        'get',
        param,
        success,
        error
    )
  }
}

export default obj
